#include "plain_lbvm.h"
#include "DIVA_Manager.h"
#include <string>


/// constructor
#define COLOR_MODULATE_PARAM_INDEX 1

plain_lbvm::plain_lbvm(DIVA_VM* vm, std::string name){

	_bodyvm = vm ;
	_msg = new MovableText(getNewUniqueName(), name);
	_msg->setTextAlignment(MovableText::H_CENTER, MovableText::V_BELOW); // Center horizontally and display above the node	
	_SceneNode->attachObject(_msg);
	DIVA_Manager::getInstance()->reg_MovableObj_VM_relation(_msg,this);
	_msg->setCaption(name);
	_msg->setCharacterHeight(30);		
	_msg->setColor(ColourValue(1.0, 1.0, 1.0, 1.0f));

	_SceneNode->setPosition(-100+entityNum*10,100-entityNum*50,0);
	
}

/// destructor
plain_lbvm::~plain_lbvm(){
}


void plain_lbvm::VMValueUpdated() {

}

